package com.baidu.day04;
//Null Pointer Exception 空指针异常
//当一个空的对象去访问它的成员，一定会出现空指针异常
public class Demo04 {
    public static void main(String[] args) {
        Student stu = new Student();
        stu = null;
        stu.name = "张三";
        System.out.println(stu.name);
    }
}
